home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / system.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  13.9 KB  |  677 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ SETUP MENU \\
  5.  
  6. menuDef {
  7.         name "system_menu"
  8.         visible 0
  9.         fullscreen 0
  10.     rect 186 0 443 426
  11.         focusColor 1 .75 0 1
  12.         style 1
  13.         border 1
  14.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; fadeout fadebox ; hide grpSystem ; show graphics }
  15.  
  16.  
  17.  
  18. itemDef {
  19.     name window
  20.     group grpSystembutton
  21.     rect 0 2 443 426    
  22.     style WINDOW_STYLE_FILLED
  23.     border 1
  24.     bordercolor .5 .5 .5 .5
  25.     forecolor 1 1 1 1
  26.     backcolor 0 0 0 .25
  27.     visible 1
  28.     decoration
  29. }
  30.  
  31.  
  32.  
  33.  
  34. //     System        //
  35.  
  36. itemDef {
  37.     name ctr_graphics
  38.     text "Graphics"
  39.     type 1
  40.     textscale .3
  41.     group grpSystembutton
  42.     style WINDOW_STYLE_FILLED
  43.     background "ui/assets/button_back.tga"
  44.     rect 56 395 100 26
  45.     textalign 1
  46.     textalignx 50
  47.     textaligny 20
  48.     forecolor 1 1 1 1
  49.     backcolor .37 .1 .1 1 
  50.     visible 1
  51.     action { play "sound/misc/kcaction.wav" ; 
  52.     hide grpSystem ; show graphics }
  53.     mouseEnter { show message_graphics ; setitemcolor ctr_graphics backcolor .1 .37 .1 1 } 
  54.     mouseExit { hide message_graphics ; setitemcolor ctr_graphics backcolor .37 .1 .1 1 } 
  55.     }
  56.  
  57. itemDef {
  58.           name ctr_graphics
  59.     style WINDOW_STYLE_SHADER
  60.     background "ui/assets/framebutton.tga"
  61.      rect 56 395 100 26
  62.           visible 1 
  63.     decoration        
  64.         }
  65.  
  66. itemDef {
  67.           name ctr_graphics
  68.     style WINDOW_STYLE_SHADER
  69.     background "ui/assets/leftbutton.tga"
  70.           rect 44 395 13 26
  71.           visible 1 
  72.     decoration        
  73.         }
  74.  
  75. itemDef {
  76.           name ctr_graphics
  77.     style WINDOW_STYLE_SHADER
  78.     background "ui/assets/rightbutton.tga"
  79.           rect 155 395 13 26
  80.           visible 1 
  81.     decoration        
  82.         }
  83.  
  84.  
  85.     itemDef {
  86.         name graphics                
  87.         group grpSystem
  88.         text "Quality:"
  89.            type ITEM_TYPE_MULTI    
  90.         cvar "ui_glCustom"
  91.         cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 }
  92.         rect 99 42 256 20
  93.            textalign ITEM_ALIGN_RIGHT
  94.            textalignx 128 
  95.            textaligny 20
  96.         textscale .333         
  97.            forecolor 1 1 1 1
  98.            visible 0 
  99.         action { uiScript update "ui_glCustom" }
  100.     }
  101.  
  102.     itemDef {
  103.           name graphics
  104.         group grpSystem
  105.            type ITEM_TYPE_EDITFIELD
  106.         text "GL Driver:"
  107.         cvar "r_gldriver"
  108.         rect 99 67 256 20
  109.            textalign ITEM_ALIGN_RIGHT
  110.           textalignx 128
  111.            textaligny 20
  112.         textscale .333        
  113.            forecolor 1 1 1 1
  114.            visible 0 
  115.         decoration
  116.     }
  117.  
  118.     itemDef {
  119.            name graphics
  120.         group grpSystem
  121.               type ITEM_TYPE_YESNO
  122.         text "GL Extensions:"
  123.         cvar "r_allowExtensions"
  124.         rect 99 92 256 20
  125.               textalign ITEM_ALIGN_RIGHT
  126.               textalignx 128
  127.               textaligny 20
  128.         textscale .333       
  129.               forecolor 1 1 1 1
  130.               visible 0
  131.         action { uiScript glCustom }
  132.     }
  133.     
  134.     itemDef {
  135.            name graphics
  136.         group grpSystem
  137.            type ITEM_TYPE_MULTI    
  138.         text "Video Mode:"
  139.         cvar "r_mode"
  140.         cvarFloatList { "320*240" 0 "400*300" 1 "512*384" 2 "640*480" 3 "800*600" 4 "960*720" 5 "1024*768" 6 "1152*864" 7 "1280*1024" 8 "1600*1200" 9 "2048*1536" 10 "856*480 Wide Screen" 11 }
  141.         rect 99 117 256 20
  142.               textalign ITEM_ALIGN_RIGHT
  143.               textalignx 128
  144.               textaligny 20
  145.         textscale .333        
  146.               forecolor 1 1 1 1
  147.               visible 0 
  148.         action { uiScript glCustom }
  149.     }
  150.  
  151.     itemDef {
  152.            name graphics
  153.         group grpSystem
  154.            type ITEM_TYPE_MULTI
  155.         text "Color Depth:"
  156.         cvar "r_colorbits"
  157.         cvarFloatList { "Desktop Default" 0 "16-bit" 16 "32-bit" 32 }
  158.         rect 99 142 256 20
  159.               textalign ITEM_ALIGN_RIGHT
  160.               textalignx 128
  161.               textaligny 20
  162.         textscale .333       
  163.               forecolor 1 1 1 1
  164.               visible 0 
  165.         action { uiScript glCustom ; uiScript update "r_colorbits" }
  166.     }
  167.  
  168.     itemDef {
  169.            name graphics
  170.         group grpSystem
  171.               type ITEM_TYPE_YESNO
  172.         text "Fullscreen:"
  173.         cvar "r_fullscreen"
  174.         rect 99 167 256 20
  175.               textalign ITEM_ALIGN_RIGHT
  176.               textalignx 128
  177.               textaligny 20
  178.         textscale .333        
  179.               forecolor 1 1 1 1
  180.               visible 0 
  181.         action { uiScript glCustom }
  182.     }
  183.  
  184.     itemDef {
  185.               name graphics
  186.         group grpSystem
  187.               type ITEM_TYPE_MULTI            
  188.         text "Lighting:"
  189.         cvar "r_vertexlight"
  190.         cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1  }
  191.         rect 99 192 256 20
  192.               textalign ITEM_ALIGN_RIGHT
  193.               textalignx 128
  194.               textaligny 20
  195.         textscale .333        
  196.               forecolor 1 1 1 1
  197.               visible 0 
  198.         action { uiScript glCustom }
  199.     }
  200.  
  201.     itemDef {
  202.            name graphics
  203.         group grpSystem
  204.             type ITEM_TYPE_MULTI
  205.         text "Geometric Detail:"
  206.         cvar "r_lodbias"
  207.         cvarFloatList { "High" 0 "Medium" 1 "Low" 2 }
  208.         rect 99 217 256 20
  209.               textalign ITEM_ALIGN_RIGHT
  210.               textalignx 128
  211.               textaligny 20
  212.         textscale .333        
  213.               forecolor 1 1 1 1
  214.               visible 0 
  215.         action { uiScript glCustom ; uiScript update "r_lodbias" }
  216.     }
  217.  
  218.     itemDef {
  219.           name graphics
  220.         group grpSystem
  221.            type ITEM_TYPE_MULTI
  222.         text "Texture Detail:"
  223.         cvar "r_picmip"
  224.         cvarFloatList { "Low" 2 "Normal" 1 "High" 0 }
  225.         rect 99 242 256 20
  226.               textalign ITEM_ALIGN_RIGHT
  227.               textalignx 128
  228.               textaligny 20
  229.         textscale .333        
  230.               forecolor 1 1 1 1
  231.               visible 0 
  232.         action { uiScript glCustom }
  233.     }
  234.     
  235.     itemDef {
  236.               name graphics
  237.         group grpSystem
  238.               type ITEM_TYPE_MULTI
  239.         text "Texture Quality:"
  240.         cvar "r_texturebits"
  241.         cvarFloatList { "Default" 0 "16 bit" 1 "32 bit" 2 }
  242.         rect 99 269 256 20
  243.               textalign ITEM_ALIGN_RIGHT
  244.               textalignx 128
  245.               textaligny 20
  246.         textscale .333        
  247.               forecolor 1 1 1 1
  248.               visible 0 
  249.        }
  250.  
  251.     itemDef {
  252.               name graphics
  253.         group grpSystem
  254.               type ITEM_TYPE_MULTI
  255.         text "Texture Filter:"
  256.         cvar "r_texturemode"
  257.         cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR"  }
  258.         rect 99 294 256 20
  259.               textalign ITEM_ALIGN_RIGHT
  260.               textalignx 128
  261.               textaligny 20
  262.         textscale .333        
  263.               forecolor 1 1 1 1
  264.               visible 0 
  265.         action { uiScript glCustom }
  266.         }
  267.     itemDef {
  268.               name graphics
  269.         group grpSystem
  270.               type ITEM_TYPE_YESNO
  271.         text "Compress Textures:"
  272.         cvar "r_ext_compressed_textures"
  273.         rect 99 319 256 20
  274.               textalign ITEM_ALIGN_RIGHT
  275.               textalignx 128
  276.               textaligny 20
  277.         textscale .333        
  278.               forecolor 1 1 1 1
  279.               visible 0 
  280.         action { uiScript glCustom }
  281.         }
  282.  
  283. itemDef {
  284.     name graphics
  285.     text "Apply"
  286.     type 1
  287.     group grpSystem
  288.     textscale .3
  289.     style WINDOW_STYLE_FILLED
  290.     background "ui/assets/button_back.tga"
  291.     rect 181 357 100 26
  292.     textalign 1
  293.     textalignx 50
  294.     textaligny 20
  295.     forecolor 1 1 1 1
  296.     backcolor .37 .1 .1 1 
  297.     visible 1
  298.     action { play "sound/misc/kcaction.wav" ; 
  299.     open vid_restart_popmenu }
  300.     mouseEnter { setitemcolor graphics backcolor .1 .37 .1 1 } 
  301.     mouseExit { setitemcolor graphics backcolor .37 .1 .1 1 } 
  302.         }
  303.     
  304.     itemDef {
  305.               name graphics
  306.         group grpSystem
  307.         style WINDOW_STYLE_SHADER
  308.         background "ui/assets/framebutton.tga"
  309.          rect 181 357 100 26
  310.               visible 1 
  311.         decoration        
  312.             }
  313.  
  314.     itemDef {
  315.               name graphics
  316.         group grpSystem
  317.         style WINDOW_STYLE_SHADER
  318.         background "ui/assets/leftbutton.tga"
  319.               rect 169 357 13 26
  320.               visible 1 
  321.         decoration        
  322.             }
  323.  
  324.     itemDef {
  325.               name graphics
  326.         group grpSystem
  327.         style WINDOW_STYLE_SHADER
  328.         background "ui/assets/rightbutton.tga"
  329.               rect 280 357 13 26
  330.               visible 1 
  331.         decoration        
  332.             }
  333.  
  334.     
  335.             
  336.  
  337.  
  338. itemDef {
  339.     name ctr_driver
  340.     text "Driver Info"
  341.     type 1
  342.     textscale .3
  343.     group grpSystembutton
  344.     style WINDOW_STYLE_FILLED
  345.     background "ui/assets/button_back.tga"
  346.     rect 181 395 100 26
  347.     textalign 1
  348.     textalignx 50
  349.     textaligny 20
  350.     forecolor 1 1 1 1
  351.     backcolor .37 .1 .1 1 
  352.     visible 1
  353.     action { play "sound/misc/kcaction.wav" ; 
  354.     hide grpSystem ; show driver }
  355.     mouseEnter { show message_driver ; setitemcolor ctr_driver backcolor .1 .37 .1 1 } 
  356.     mouseExit { hide message_driver ; setitemcolor ctr_driver backcolor .37 .1 .1 1 } 
  357.     }
  358.  
  359. itemDef {
  360.           name ctr_driver
  361.     style WINDOW_STYLE_SHADER
  362.     background "ui/assets/framebutton.tga"
  363.      rect 181 395 100 26
  364.           visible 1 
  365.     decoration        
  366.         }
  367.  
  368. itemDef {
  369.           name ctr_driver
  370.     style WINDOW_STYLE_SHADER
  371.     background "ui/assets/leftbutton.tga"
  372.           rect 169 395 13 26
  373.           visible 1 
  374.     decoration        
  375.         }
  376.  
  377. itemDef {
  378.           name ctr_driver
  379.     style WINDOW_STYLE_SHADER
  380.     background "ui/assets/rightbutton.tga"
  381.           rect 280 395 13 26
  382.           visible 1 
  383.     decoration        
  384.         }
  385.  
  386.     itemDef {
  387.         name driver
  388.         group grpSystem
  389.         rect 0 32 454 256    
  390.         text "Driver Information" 
  391.         textalign 1
  392.         textscale .333
  393.         textalignx 227
  394.         textaligny 23
  395.         forecolor 1 1 1 1
  396.         visible 0
  397.         decoration
  398.     }
  399.     
  400.     itemDef {
  401.         name driver
  402.         group grpSystem
  403.         rect 10 70 400 300    
  404.         ownerdraw UI_GLINFO
  405.         textalign 0
  406.         textalignx 0
  407.         textaligny 23
  408.         textscale .25
  409.         forecolor 1 1 1 1
  410.         visible 0
  411.         decoration
  412.         style 1
  413.         
  414.     }
  415.      
  416.  
  417.  
  418. itemDef {
  419.     name ctr_other
  420.     text "Other"
  421.     type 1
  422.     textscale .3
  423.     group grpSystembutton
  424.     style WINDOW_STYLE_FILLED
  425.     background "ui/assets/button_back.tga"
  426.     rect 306 395 100 26
  427.     textalign 1
  428.     textalignx 50
  429.     textaligny 20
  430.     forecolor 1 1 1 1
  431.     backcolor .37 .1 .1 1 
  432.     visible 1
  433.     action { play "sound/misc/kcaction.wav" ; 
  434.     hide grpSystem ; show other }
  435.     mouseEnter { show message_other ; setitemcolor ctr_other backcolor .1 .37 .1 1 } 
  436.     mouseExit { hide message_other ; setitemcolor ctr_other backcolor .37 .1 .1 1}     
  437.     }
  438.  
  439. itemDef {
  440.           name ctr_other
  441.     style WINDOW_STYLE_SHADER
  442.     background "ui/assets/framebutton.tga"
  443.      rect 306 395 100 26
  444.           visible 1 
  445.     decoration        
  446.         }
  447.  
  448. itemDef {
  449.           name ctr_other
  450.     style WINDOW_STYLE_SHADER
  451.     background "ui/assets/leftbutton.tga"
  452.           rect 294 395 13 26
  453.           visible 1 
  454.     decoration        
  455.         }
  456.  
  457. itemDef {
  458.           name ctr_other
  459.     style WINDOW_STYLE_SHADER
  460.     background "ui/assets/rightbutton.tga"
  461.           rect 405 395 13 26
  462.           visible 1 
  463.     decoration        
  464.         }
  465.  
  466. itemDef {
  467.     name other
  468.     group grpSystem
  469.     rect 2 4 439 125    
  470.     style WINDOW_STYLE_FILLED
  471.     border 1
  472.     bordercolor .5 .5 .5 .5
  473.     forecolor 1 1 1 1
  474.     backcolor 0 0 0 .25
  475.     visible 0
  476.     decoration
  477. }
  478.  
  479. itemDef {
  480.     name other
  481.     group grpSystem
  482.     rect 2 131 439 150    
  483.     style WINDOW_STYLE_FILLED
  484.     border 1
  485.     bordercolor .5 .5 .5 .5
  486.     forecolor 1 1 1 1
  487.     backcolor 0 0 0 .25
  488.     visible 0
  489.     decoration
  490. }
  491. itemDef {
  492.     name other
  493.     group grpSystem
  494.     rect 2 283 439 100    
  495.     style WINDOW_STYLE_FILLED
  496.     border 1
  497.     bordercolor .5 .5 .5 .5
  498.     forecolor 1 1 1 1
  499.     backcolor 0 0 0 .25
  500.     visible 0
  501.     decoration
  502. }
  503. itemDef {
  504.           name other            
  505.     group grpSystem
  506.           style 1
  507.     text "Display"
  508.     rect 163 8 128 20
  509.           textalign ITEM_ALIGN_CENTER
  510.           textalignx 64 
  511.           textaligny 20
  512.     textscale .3         
  513.           forecolor .4 .4 .65 1
  514.           visible 0 
  515.     decoration
  516.         }
  517.     
  518.         itemDef {
  519.               name other            
  520.         group grpSystem
  521.               type ITEM_TYPE_SLIDER
  522.         text "Brightness:"
  523.         cvarfloat "r_gamma" 1 0.5 2
  524.          rect 99 52 256 20
  525.               textalign ITEM_ALIGN_RIGHT
  526.               textalignx 128 
  527.               textaligny 20
  528.         textscale .333        
  529.               forecolor 1 1 1 1
  530.               visible 0 
  531.             }
  532.  
  533.     itemDef {
  534.               name other
  535.         group grpSystem
  536.               type ITEM_TYPE_SLIDER
  537.         text "Screen Size:"
  538.         cvarfloat "cg_viewsize" 100 30 100
  539.         rect 99 79 256 20
  540.               textalign ITEM_ALIGN_RIGHT
  541.               textalignx 128
  542.               textaligny 20
  543.         textscale .333        
  544.               forecolor 1 1 1 1
  545.               visible 0 
  546.             }
  547.  
  548. itemDef {
  549.           name other            
  550.     group grpSystem
  551.           style 1
  552.     text "Sound"
  553.     rect 163 135 128 20
  554.           textalign ITEM_ALIGN_CENTER
  555.           textalignx 64 
  556.           textaligny 20
  557.     textscale .333
  558.           forecolor .4 .4 .65 1
  559.           visible 0 
  560.     decoration
  561.         }
  562.  
  563.     itemDef {
  564.               name other
  565.         group grpSystem
  566.               type ITEM_TYPE_SLIDER
  567.         text "Effects Volume:"
  568.         cvarfloat "s_volume" 0.7 0 1
  569.         rect 99 160 256 20
  570.               textalign ITEM_ALIGN_RIGHT
  571.               textalignx 128
  572.               textaligny 20
  573.         textscale .333       
  574.               forecolor 1 1 1 1
  575.               visible 0 
  576.             }
  577.     
  578.     itemDef {
  579.               name other
  580.         group grpSystem
  581.               type ITEM_TYPE_SLIDER
  582.         text "Music Volume:"
  583.         cvarfloat "s_musicvolume" 0.25 0 1
  584.         rect 99 187 256 20
  585.               textalign ITEM_ALIGN_RIGHT
  586.               textalignx 128
  587.               textaligny 20
  588.         textscale .333        
  589.               forecolor 1 1 1 1
  590.               visible 0 
  591.             }
  592.  
  593.     itemDef {
  594.               name other
  595.         group grpSystem
  596.               type ITEM_TYPE_MULTI
  597.         text "Sound Quality:"
  598.         cvar "s_khz"
  599.         cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 }
  600.         rect 99 214 256 20
  601.               textalign ITEM_ALIGN_RIGHT
  602.               textalignx 128
  603.               textaligny 20
  604.         textscale .333        
  605.               forecolor 1 1 1 1
  606.               visible 0 
  607.             }
  608.  
  609.     itemDef {
  610.               name other
  611.         group grpSystem
  612.               type ITEM_TYPE_YESNO
  613.         text "Doppler Sound:"
  614.         cvar "s_doppler"
  615.         rect 99 241 256 20
  616.               textalign ITEM_ALIGN_RIGHT
  617.               textalignx 128
  618.               textaligny 20
  619.         textscale .333        
  620.               forecolor 1 1 1 1
  621.               visible 0 
  622.             }
  623.  
  624.  
  625.  
  626. itemDef {
  627.           name other            
  628.     group grpSystem
  629.           style 1
  630.     text "Network"
  631.     rect 163 285 128 20
  632.           textalign 1
  633.           textalignx 64 
  634.           textaligny 20
  635.     textscale .333        
  636.           forecolor .4 .4 .65 1
  637.           visible 0 
  638.     decoration
  639.         }
  640.  
  641.     itemDef {
  642.               name other
  643.         group grpSystem
  644.               type ITEM_TYPE_MULTI
  645.         text "Net Data Rate:"
  646.         cvar "rate"
  647.         cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000  }
  648.         rect 99 327 256 20
  649.               textalign ITEM_ALIGN_RIGHT
  650.               textalignx 128
  651.               textaligny 20
  652.         textscale .333        
  653.               forecolor 1 1 1 1
  654.               visible 0 
  655.             action { uiScript update ui_setRate }
  656.            }
  657.  
  658.  
  659. itemDef {
  660.           name fadebox
  661.           style WINDOW_STYLE_FILLED
  662.      background "ui/assets/fadebox.tga"
  663.     forecolor 0 0 0 1
  664.     backcolor 0 0 0 1
  665.     rect 0 0 640 480
  666.           visible 1 
  667.     decoration
  668.         }
  669.  
  670.     
  671.  
  672.  
  673. }
  674.  
  675.  
  676. }
  677.